<include file="application/walletyhbbadmin/view/public/left.html"/>
    <!--/sidebar-->
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:U('Index/index')}">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">财务日志</span><span class="crumb-step">&gt;</span><span class="crumb-name">充值日志</span></div>
        </div>
        
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th>日志编号</th>
                            <th>会员账号</th>
                            <th>充值金额</th>
                            <th>充值时间</th>
                            <th>类型</th>
                           	<th>状态</th>
                           	<th>审核</th>
                        </tr>
                        <volist name="list" id="vo" empty="$empty">
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$vo.account}</td>
                            <td>{$vo.num}</td>
                            <td>{$vo.add_time|date="Y-m-d H:i:s",###}</td>
                            <td>{$vo['type']=='1' ? '银行卡' : '支付宝'}</td>
                           	<td>
                           		<eq name="vo.status" value="0">等待审核</eq>
                           		<eq name="vo.status" value="1">审核通过</eq>
                           		<eq name="vo.status" value="-1">驳回</eq>
                           	</td>
                           	<td>
                           		<eq name="vo.status" value="0"><a class="shenhe" data-value="1">通过</a>&nbsp;&nbsp;&nbsp;&nbsp;<a class="shenhe" data-value="-1">驳回</a></eq>
                           	</td>
                        </tr>
                        </volist>
                    </table>
					<div class="list-page"> <ul>{$page}</ul></div>
                </div>
            </form>
        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>
<script>
$(".sub-menu").eq(2).show();
$(".sub-menu").eq(2).children("li").eq(2).addClass("on");
</script>
<script>
function download(){
	var add_time=$('#aaaaa1').val();
	var end_time=$('#aaaaa2').val();
	var url="{:U('Finance/trans_excel')}";
	window.location.href=url+"?add_time="+add_time+"&&end_time="+end_time;
}
$(".shenhe").click(function(){
	var cid = $(this).parent().parent().find("td").eq(0).text();
	var status = $(this).attr("data-value");
	$.post('shenhe',{cid:cid,status:status},function(res){
		alert("审核成功");
		  window.location.reload();
	})
	
});

</script>